package com.cloud.open.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wenjin
 * @since 2019-10-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("open_app_authorization")
public class AppAuthorization implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 应用主键ID
     */
    @TableField("app_id")
    private Integer appId;

    /**
     * 资源主键ID
     */
    @TableField("resource_id")
    private Integer resourceId;


    public static final String ID = "id";

    public static final String APP_ID = "app_id";

    public static final String RESOURCE_ID = "resource_id";

}
